package com.imu.purse.modules.trade.service;


import java.util.List;
import com.imu.purse.modules.trade.entity.YmbWithdrawEntity;

/**
 * 易买宝充值详情表
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-07-02 23:47:18
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
public interface YmbWithdrawService 
{
	/****
	 * 插入易买宝充值详情表
	 * @param ymbDetail
 	 * @date 2018-07-02 23:47:18
	 * @return
	 */
    public int save(final YmbWithdrawEntity entity);
    
    /****
	 * 删除易买宝充值详情表
	 * @param ids
 	 * @date 2018-07-02 23:47:18
	 * @return
	 */
    public boolean delete(final String... ids);
    
    /****
	 * 修改易买宝充值详情表
	 * @param ymbDetail
 	 * @date 2018-07-02 23:47:18
	 * @return
	 */
    public int update(final YmbWithdrawEntity entity);
    
     /****
	 * 插入或跟新易买宝充值详情表
	 * @param ymbDetail
 	 * @date 2018-07-02 23:47:18
	 * @return
	 */
    public int saveUpdate(final YmbWithdrawEntity entity);
    
    /****
	 * 根据ID查询易买宝充值详情表
	 * @param id
 	 * @date 2018-07-02 23:47:18
	 * @return
	 */
    public YmbWithdrawEntity findById(final Long id);
    

 	public void withdraw(final String key, final YmbWithdrawEntity dto, final Long userId);
    
    /****
   	 * 分页查询易买宝充值详情表
	 * @param ymbDetail
 	 * @date 2018-07-02 23:47:18
   	 * @return
   	 */
    public List<YmbWithdrawEntity> queryList(final YmbWithdrawEntity entity);
}
